package com.minigame.entity;

import com.minigame.annotation.BusID;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Table
@Entity
public class Item {

    @Id
    @Column
    private long id;

    @Column
    private int itemId;

    @Column
    private int count;

    @BusID
    @Column
    private long userId;


    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public int getItemId() {
        return itemId;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getUserId() {
        return userId;
    }

}
